/*
Length of Last Word
https://www.leetcode.com/problems/length-of-last-word
*/

class Solution {
    public int lengthOfLastWord(String s) {
        String[] arr = s.split(" ");
        return arr[arr.length - 1].length();
    }
}